package api_models

import (
	"longmen/server/pkg/db/mysql/models/models_main"
)

type GetGuildListReq struct {
	Keyword string `json:"keyword"`
}

type GetGuildInfoReq struct {
	Guildid int `json:"guildid" validate:"required"`
}

type GetGuildInfoResp struct {
	Guild struct {
		models_main.Guild
		Users []*Anchor `json:"users"`
	} `json:"guild"`
	ApplyStatus int `json:"apply_status"`
}

type ApplyJoinGuildReq struct {
	Guildid int `json:"guildid" validate:"required"`
}

/*（针对一个主播的）某个经纪人的分佣比例*/
type ManagerRate struct {
	ManagerId   int     `json:"manager_id" validate:"required"`
	GuildId     int     `json:"guild_id" validate:"required"` //公会ID
	Rate        float64 `json:"rate" validate:"required"`
	ShareAmount int     `json:"share_amount" validate:"required"`
}
